Add Python 2 compatibility

I'd rather leave the default as Python 3. It will get rewritten on installation to use the Python executable it's installed with anyway.