Py3

Fixes to support Python3. I disabled pythontidy completely in python3 because fixing all the possible syntax problems and supporting both Python 2 and Python 3 would need a large rewrite.
that looks like a typo