def init(self): for t in range(100000): if self._init() == True: return True raise RuntimeError("Connection timed out to master server %s" % addr)