code: def getMonitor(self):
          
          from .RegionMatching import Screen
          scr = self.getScreen()
          return scr if scr is not None else Screen(0)
docs: Returns an instance of the ``Screen`` object this Location is inside.
  
          Returns the primary screen if the Location isn't positioned in any screen.