[Python-Dev] Module cleanup improvement