python 3 compatability changes