<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unique_key(connection):
 """ Generate a unique keyname that does not exists is the connection keyspace. """

    while 1:
        key = str(uuid.uuid4().hex)
        if not connection.exists(key):
            break
    return key