Trivial Python3 compatibility changes.

Change ```print 'abc'``` to ```print('abc').
Change ```except ABC, e``` to ```except ABC as e```
Change import to relative import.