fixing fire_events and pylint issues