fixed minor python 3 issues