Why not to use `ndimage.gaussian_filter`? It already understand sigma as a scalar or a tuple.