Simple meta collection of arguments passed to the script to be used for each job
    :param args: argument collection generated by argparse
    :param flag: actual flag to be checked for. If it isn't present in args, then the flag won't be added to new_args
    :param new_args: list of argument strings that should be used in job executions
    :return none (new_args is possibly updated)

def check_and_append(args, flag, new_args):
    """Simple meta collection of arguments passed to the script to be used for each job
    :param args: argument collection generated by argparse
    :param flag: actual flag to be checked for. If it isn't present in args, then the flag won't be added to new_args
    :param new_args: list of argument strings that should be used in job executions
    :return none (new_args is possibly updated)

    """
    try:
        v = eval("args.%s" % (flag.replace("-", "_")))
        if v is not None:
            if v == True:
                new_args.append("--%s" % (flag))
            elif v != False:
                new_args.append("--%s %s" % (flag, str(v)))
    except:
        pass