<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_entry(key, value):
 """ Set a configuration entry :param key: key name :param value: value for this key :raises KeyError: if key is not str """

    if type(key) != str:
        raise KeyError('key must be str')
    _config[key] = value