Do you want to add "from __future__ import print_function" so print is actually a function?