Working on PythonEvents OnRegisterEvent, other bug fixes