def get_version():
    version = {}
    with open("bqueryd/version.py") as fp:
        exec (fp.read(), version)
    return version
def exitMode(self, mode):
        if mode in self.modeList:
            self.modeList.remove(mode)