AllocTracker is a project mainly written in Python, it's free.
track allocations/acquires/opens to debug resource leaks