def string_io(data=None):  # cStringIO can't handle unicode
    try:
        return cStringIO(bytes(data))
    except (UnicodeEncodeError, TypeError):
        return StringIO(data)
Initializes and configures the process and then the Viewfinder server.
dataset/ETHPy150Open saltstack/salt/salt/_compat.py/string_io--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/main.py/InitAndRun