<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_any_event(self, event):
 """File created or modified"""

        if os.path.isfile(event.src_path):
            self.callback(event.src_path, **self.kwargs)