Start of spectrum to concentrations in python