def get_type_name(obj):
    """
    Given an object, return the name of the type of that object. If `str(type(obj))` returns
    `"<class 'threading.Thread'>"`, this function returns `"threading.Thread"`.
    """
    try:
        return str(type(obj)).split("'")[1]
    except Exception:
        return str(type(obj))