def datastore_wait_ready(popen):
 emulator_ready = False
 while (not emulator_ready):
  emulator_ready = (popen.stderr.readline() == _DS_READY_LINE)

def datastore_wait_ready ( popen ) : emulator_ready = False while ( not emulator_ready ) : emulator_ready = ( popen . stderr . readline ( ) == _DS_READY_LINE )
wait until the datastore emulator is ready to use .