Python3 support (print, except)