pvlib.solarposition.
pyephem_earthsun_distance
Calculates the distance from the earth to the sun using pyephem.