This was caused by my previous commit for add_hook. * Also, removed a compiler warning in the Python code