Update for Python 3

Mechanize itself doesn't support Py3, though.