You can avoid the previous 10 lines by doing:
merded_dir = unaligned_dirs[0]
for u in unaligned_dirs[1:]:
   m_flowcell_demux = merge_flowcell_demux_summary(merged_dir, u, fc_id)
   ....

In this way you do not have to threat two as some sort of special case or as initialisation