bdecode Library in Python doesn't work
<p>I'm trying to decode a bencode format using the bdecode library in python. I have imported the bcode library as well in my python folder. When i try to use the function bdecode which is defined in the library. I get an error </p>

<pre><code>                 File "C:\Python27\fit.py", line 21, in &lt;module&gt;
                 decoded = bdecode(data)
                 NameError: name 'bdecode' is not defined  
</code></pre>

<p>Any idea why this error is happening, I'm just new to python? If this is because of the bcode library , could anyone submit a link to some other bcode library?</p>

<p>This is the code I'm trying</p>

<pre><code>             import  bcode, urllib, urlparse, string
             url = "http://update.utorrent.com/installoffer.php?"
             url = url + "offer=conduit"

             filename = "out_py.txt"
             urllib.urlretrieve(url,filename)

             with open ("out_py.txt", "r") as myfile:
             data=myfile.readlines()

             decoded = bdecode(data)
</code></pre>
