updated python wrapper to use hook set functions, no python api changes