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