Make sure to install bencode package with easy_install https://pypi.python.org/packages/2.7/b/bencode/bencode-1.0-py2.7.egg