Update merge.py

call split once for operating to improve performance 8 times using data from make_file function