print py3 fixes