Make http manifest.py work with python3+ as well as 2.7