code: def get_parents(self):
          
          res = []
          parent = self.parent
          while parent and isinstance(parent, Scene) == False:
              res.insert(0, parent)
              parent = parent.parent
  
          return res
docs: returns all the parent sprites up until scene