def run(a, desc, prt=sys.stdout): ah = ArrayHistory() Sort(a, array_history=ah) ah.prt_intlvd() # After each merge, print the state of both a and aux #ah.show(desc) prt.write("{DESC} RESULT: {A}\n".format(DESC=desc, A=a))