- integrated the type= feature in argparse in all three scripts - removed some redundant code from the third file