def is_private(key):
    """
    Returns whether or not an attribute is private.
    A private attribute looks like: __private_attribute__.

    :param key: The attribute key
    :return: bool
    """
    return key.startswith("__") and key.endswith("__")