pycfg A library for building control-flow graphs of Python code. See https://github.com/avacariu/instru for an example of how it can be used for instrumenting code for path profiling.