def METHOD_NAME(self):
    """Dictionary representation of this object
    Ignores any potential private attributes.
    """
    dd = {}
    for key, val in self.__dict__.items():
        if any([key.startswith(x) for x in ("_", "__")]):
            continue
        dd[key] = val
    return dd