Python: profile analysis demo