python3 compatibility effort1