def _totuple(x):
    """Utility stuff to convert string, int, float, None or anything to a usable tuple."""
    if isinstance(x, str):
        out = x,
    elif isinstance(x, (int, float)):
        out = str(x),
    elif x is None:
        out = None,
    else:
        out = tuple(x)
    return out
