def find_param_by_keyword(keyword, params):
    """
    Searches for a specific param by keyword.
    This function will try to look for the keyword as-is first, and then tries
    to find the uppercase'd version of the keyword.
    """
    if keyword in params:
        return params[keyword]
    keyword = keyword.upper()
    if keyword in params:
        return params[keyword]
    raise KeyError('No param named {} defined'.format(keyword))
