<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def propagate(self, *arg, **kw):
 """ Propagates activation through the network."""

        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]