fix python-hooks.h function define