Converted to python 3

(for real this time :P)