clean python script