Make href.py work with Python 3