def auto_untype(arg):
    """ The oposite of auto_type : takes a python base object and tries to
    convert it to XML typed string.
    """
    if arg is True:
        return 'TRUE'
    elif arg is False:
        return 'FALSE'
    else:
        return arg
