fix some timezone issues and pep8 stuff
fix timezone and python3/2.7 stuff