def get_content(obj):
    """ Works arround (sometimes) non predictible results of pythonzimbra

    Sometime, the content of an XML tag is wrapped in {'_content': foo},
    sometime it is accessible directly.
    """
    if isinstance(obj, dict):
        return obj['_content']
    else:
        return obj
