Python3 support

Quickest fix ever.

It seems I also removed some whitespace on empty lines.