def set_default_action(args, subparser):
    """
    Look at the args passed and determine if there is a subparse action set for
    it. If there is, then return the normal set of args. If NOT then append the
    default 'install' action and return it.

    This is primarily to get around a shortcoming in python2 :-|

    Args:
        args: list, of the args passed to the script

    Returns:
        list
    """
    action_exists = False
    args_passed = list(args)
    for action in subparser.choices:
        if action in args_passed:
            action_exists = True
            break
    if not action_exists:
        args_passed.append('install')
    return args_passed