Program Profiling In Python