Some py3 compatability