Updated python scripts to make them more readable and understandable
Added event profiler