Python Loop Through Specific Gravity