def _to_str(pvs):
    """Ensure argument is a string or list of strings."""
    # The logic follows that from the cothread library.
    # If is it NOT a string then assume it is an iterable.
    if isinstance(pvs, str):
        return str(pvs)
    else:
        return [str(pv) for pv in pvs]