Change print and except usage for python3 compatibility

+ Use print as a function instead of a statement thanks to __future__
+ except statements now use 'as' instead of ','