working on python 3 fixes