solved cleaning up in python