using python2.7 to run hooks.py