start py3 compatibility