def get_version():
    version = {}
    with open("bqueryd/version.py") as fp:
        exec (fp.read(), version)
    return version
def lock_temp(self, key):
    self.lock(key)
    try:
      yield
    finally:
      self.unlock(key)