1) use ``argparse`` 2) have it return variables and values for later handling, and remove file open from there