Python tools for debugging performance