This is not performance critical code.  I had to look up what kind of object self.lines.level was.  `self.lines.level = []` would have made that immediately clear.