Fix _fix_url on Python 2.6
Merge pull request #6 from mdboom/style/py26-fixes

Fix for Python 2.6