title: Python Mechanize + GAEpython code
body: <p>I am aware of previous questions regarding mechanize + Google App Engine, 
  <a href="https://stackoverflow.com/questions/1563165/what-pure-python-library-should-i-use-to-scrape-a-website">What pure Python library should I use to scrape a website?</a>
  and <a href="https://stackoverflow.com/questions/1389893/mechanize-and-google-app-engine">Mechanize and Google App Engine</a>.</p>
  
  <p>Also there is some code <a href="http://powertwenty.com/kpd/blog/index.php/python/using_mechanize_with_the_google_app_engine" rel="nofollow noreferrer">here</a>, which I cannot get to work on app engine, throwing </p>
  
  <pre><code>File “D:\data\eclipse-php\testpy4\src\mechanize\_http.py”, line 43, in socket._fileobject(”fake socket”, close=True)
  File “C:\Program Files (x86)\Google\google_appengine\google\appengine\dist\socket.py”, line 42, in _fileobject
  fp.fileno = lambda: None
  AttributeError: ’str’ object has no attribute ‘fileno’
  INFO 2009-12-14 09:37:50,405 dev_appserver.py:3178] “GET / HTTP/1.1″ 500 -
  </code></pre>
  
  <p>Is anybody willing to share their working mechanize + appengine code?</p>