Use the new, less ambiguous exception handling syntax.
Use print as a function.
Merge pull request #464 from andrewshadura/master

Some syntax updates