Profiling a program with IPython