parse python script