with open(file_large) as bigfile:
    for i, lines in enumerate(chunks(bigfile, l)):
        file_split = '{}.{}'.format(file_large, i)
with open(file_split, 'w') as f:
    f.writelines(lines)
Split large text file(around 50GB) into multiple files