@contextmanager
def from_dir(cwd):
    import os
    curdir = os.getcwd()
    try:
        os.chdir(cwd)
        yield
    finally:
        os.chdir(curdir)
Connects to Polyglot if not currently connected
dataset/ETHPy150Open hayd/pep8radius/pep8radius/shell.py/from_dir--crossover with--dataset/ETHPy150Open UniversalDevicesInc/Polyglot/polyglot/nodeserver_api.py/PolyglotConnector.connect