python 3 shenanigans