[IMP] Improved code for event.py according to the first10click.