Actually the sum thing doesn't work... for one it returns both 55 and 65, but also the numpy version behaves differently, so if pylab is used it causes an error, but ravel can be used and having both 55 and 65 will be useful for doing a black bar. So. Left the code as it was for now, will use this when doing the black bar.