cleanup python script