Event class in python to enable listener/signal functionality