small python 3 changes