[Python-Dev] Clean memory on C trace