solar-magnetism Study of the effects of the Sun's magnetic field on the irradiated intensity and sun spots in Python