def typename(obj):
    if hasattr(obj, '__class__'):
        return getattr(obj, '__class__').__name__
    else:
        return type(obj).__name__
Returns the type of obj as a string. More descriptive and specific than
dataset/ETHPy150Open madisona/django-google-maps/django_google_maps/fields.py/typename