Working CL python script