code: def printNetwork(network):
    print "The network has",len(network.regions.values()),"regions"
    for p in range(network.getMaxPhase()):
      print "=== Phase",p
      for region in network.regions.values():
        if network.getPhases(region.name)[0] == p:
          print "   ",region.name