def full_class_name(cls):
    """Get the fully qualified class name of an object class.

    Reference: https://stackoverflow.com/a/2020083
    """
    module = cls.__class__.__module__
    if module is None or module == str.__class__.__module__:
        return cls.__class__.__module__  # Avoid reporting __builtin__
    else:
        return module + '.' + cls.__class__.__name__