Python3 support (print, except ... as ...)