using subprocess instead os.system to run hooks.
pep8.