Custom S&P 500 daily total return index in Python

Let’s say you need total return data for the S&P 500, starting 1974…