This seems to do the opposite of what the docstring says. Tthat is: you multiply only the sph_harm with m == 0 by sqrt(2), where the docstring suggests that you would multiply all the others except for this one. Or am I misunderstanding something?