Update for Python3 compatibility (print statements in python3 required "()"
and have a new way of doing output to stderr which was implemented in
the print function in the 'future' package)