Porting to Python 3 door Lennart Regebro