How to use cProfile to profile Python code