def importable_name(cls):
    "\n    >>> class Example(object):\n    ...     pass\n\n    >>> ex = Example()\n    >>> importable_name(ex.__class__) == 'jsonpickle.util.Example'\n    True\n    >>> importable_name(type(25)) == 'builtins.int'\n    True\n    >>> importable_name(None.__class__) == 'builtins.NoneType'\n    True\n    >>> importable_name(False.__class__) == 'builtins.bool'\n    True\n    >>> importable_name(AttributeError) == 'builtins.AttributeError'\n    True\n\n    "
    name = getattr(cls, '__qualname__', cls.__name__)
    module = translate_module_name(cls.__module__)
    return '{}.{}'.format(module, name)
>>> class Example(object):
...     pass

>>> ex = Example()
>>> importable_name(ex.__class__) == 'jsonpickle.util.Example'
True
>>> importable_name(type(25)) == 'builtins.int'
True
>>> importable_name(None.__class__) == 'builtins.NoneType'
True
>>> importable_name(False.__class__) == 'builtins.bool'
True
>>> importable_name(AttributeError) == 'builtins.AttributeError'
True
def importable_name(cls):
    "\n    >>> class Example(object):\n    ...     pass\n\n    >>> ex = Example()\n    >>> importable_name(ex.__class__) == 'jsonpickle.util.Example'\n    True\n    >>> importable_name(type(25)) == 'builtins.int'\n    True\n    >>> importable_name(None.__class__) == 'builtins.NoneType'\n    True\n    >>> importable_name(False.__class__) == 'builtins.bool'\n    True\n    >>> importable_name(AttributeError) == 'builtins.AttributeError'\n    True\n\n    "
    name = getattr(cls, '__qualname__', cls.__name__)
    module = translate_module_name(cls.__module__)
    return '{}.{}'.format(module, name)