def parse_namespace(var_nspce):
    """
    Process the dictionary (e.g. produced by vars(argparse.Namespace)). Change None to False (produced by checkboxes)
    and "on" to True

    :param dict var_nspce: the dictionary representation of argparse.Namespace to be parsed
    :return dict: processed dict. Keep in mind that if the input was the output of vars(argparse.Namespace)
     the argparse.Namespace will update as well.
    """
    for key, value in var_nspce.items():
        if value is None and key is not 'subproject':
            var_nspce[key] = False
        elif value == 'on':
            var_nspce[key] = True
    return var_nspce
