env-hooks: fix Python2/Python 3 clash.

The script itself should be fixed for Python 3.