python cleanup update