python3 compatibility effort2