Missing

```from __future__ import print_function```

at the beginning of the file.