Switching from a quick and dirty callback to using python signal stuff