Working on PythonEvents API