'Returns the hash for the given key
Creates the hash if the key doesn\'t exist.'

def hgetall(self, key):

    try:
        return self[key]
    except KeyError:
        self[key] = {}
        return self[key]
