Moved hook to disable python