code: def get_region(self, ip):
          ''' Get region '''
          rec = self.get_all(ip)
          return rec and rec.regiof get_region(self, ip):
          ''' Get region '''
          rec = self.get_all(ip)
          return rec and rec.region
docs: Get region