Python3 port

i have created a new branch "python3" for it, maybe you want to do the same.

if you can easily do practical testing, please give feedback.