'Dict-like keys() that returns a list of names of cookies from the jar.
See values() and items().'

def keys(self):

    keys = []
    for cookie in iter(self):
        keys.append(cookie.name)
    return keys
