def setup():
    global has_been_setup
    if not has_been_setup:
        has_been_setup = True
        sys.stdin = Std(sys.__stdin__, 'r')
        sys.stdout = Std(sys.__stdout__, 'w')
Make sure that sys.stdin and sys.stdout are replaced by an Std object.
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/std.py/setup