typeerror: 'frozenset' object does not support indexing