av=create_averager(arr,4,0.5) print av.sum.read() tscan(av.sum, 10,0.1)