Support more versions of Python
Add more Python 3 compatibility