Make htmlayout fetch script usable in python 3 (don't know about the dependencies though)
Fixes #1