Please create empty dicts using dict()
self.frames = dict()