Improve Python 3 compatibility (remove irregular raise syntax)
Improve Python 3 compatibility (print is a function)