Py3k

Very simple port to Python3, does not contain any refactoring yet.