Fixed a Python 3 to 2 bug with use of urllib on logout