Return the type of an object. Do some regex to remove the "<class..." bit.

def get_type(obj, **kwargs):
    """Return the type of an object. Do some regex to remove the "<class..." bit."""
    t = type(obj)

    s = extract_type(str(t))

    return 'Type: {}'.format(s)