def get_name_and_type(keyval):
    """Take keyval from config file, return capitalized name and action_type"""
    action_type = keyval.keys()[0]
    name = keyval[action_type].upper()
    return name, action_type