def _autoconvert(value):
    """Convert to int or float if possible, otherwise return string"""
    try:
        return int(value)
    except ValueError:
        pass
    try:
        return float(value)
    except ValueError:
        return value