def get_value_by_key(attrs, *args):
    """
    Helper to get attribute values for N attribute names (return first match
    only)

    :param attrs: The attributes for input
    :param args: The attributes we want to query
    :return: The first value for the attribute specified in args
    """
    for search_attr_key in args:
        for attr_key, attr_value in attrs.iteritems():
            if attr_key.lower() == search_attr_key:
                return attr_value
    return None