Here, I think that you just need to add a `from __future__ import print_function` line at the top of the module and then make all print commands into print function calls, ie `print()`.