FSPS (for Flexible Stellar Population Synthesis)
is a software package for carrying out stellar population synthesis (SPS).
I believe it is written in Fortran, and various packages have been
developed allowing access to it from Python and other
languages/environments.