I am designing a python API which takes some parameters. My primary requirement for this API is that calling module should be notified in case of some event X and it should also