change 'events' -> 'params' in __main__