changed python 2 misc to python 3