ltrace >= 0.7.3-1 is good because it supports dlopen'd libraries
Add trac, genshi to PYTHONPATH