Fixed the number of events in *.py files.