Added handler.py with stuff for event handlers.