def get_location (ip_address):

    location = {}

    query = get_url(_generate_url(ip_address))
    if query is not None:
        for line in query.splitlines():
            data = line.split(': ')
            if len(data) == 2 and len(data[1]) > 0:
                location[data[0]] = data[1]

    return location
Serialize the object down to Python primitives.
dataset/ETHPy150Open dpapathanasiou/intelligent-smtp-responder/utils/geolocator.py/get_location--crossover with--dataset/ETHPy150Open zapier/django-rest-hooks/rest_hooks/models.py/Hook.serialize_hook