Port from python 2 to python 3 :sparkles: