Refactored code in process_all_nuc_seq.py