code: def propagate(self, *arg, **kw):
          
          output = Network.propagate(self, *arg, **kw)
          if self.interactive:
              self.updateGraphics()
          # IMPORTANT: convert results from numpy.floats to conventional floats 
          if type(output) == dict:
              for layerName in output:
                  output[layerName] = [float(x) for x in output[layerName]]
              return output
          else:
              return [float(x) for x in output]
docs: Propagates activation through the network.