Hooking and signaling library for python