When you use *frames
form, it would be a tuple. You can confirm this with
print type(frames)
So, you might want to convert that to a list like this
self.frames = list(frames)
and then use the list.append
function like this
self.frames.append(frame)