Python supports tracing with Linux's perf, and "for best results":
Python should be compiled with CFLAGS="-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
The first of these options was previously discussed in #239 which stalled due to Python deprecating dttace support, but perf support is here to stay.