def circuit_built(self, circuit):
        if circuit.purpose != 'GENERAL':
            return

        path = '->'.join(map(lambda r: r.location.countrycode,
                             circuit.path))
        print "circuit built", circuit.id, path
        for (circid, d, stream_cc) in self.waiting_circuits:
            if circid == circuit.id:
                self.waiting_circuits.remove((circid, d, stream_cc))
                d.callback(circuit)
ICircuitListener
dataset/ETHPy150Open meejah/txtorcon/examples/attach_streams_by_country.py/MyAttacher.circuit_built