Added restrictions to merge.py script