start of python3 stuff
better version