median scipy + anisotropic smth else