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.
you defined "is_py3" above, but you are not using it here..