merging python script