finish python cleanup