refactored setup to find env hooks via python (#276)