code: def get_city(self, ip):
          ''' Get city '''
          rec = self.get_all(ip)
          return rec and rec.citf get_city(self, ip):
          ''' Get city '''
          rec = self.get_all(ip)
          return rec and rec.city
docs: Get city