oops, looks like i'm missing the Quandl Key as well.

The script ran anyways, but the .t8 file appears to be incorrect. my results were different when using the SPYa.t8 downloaded from archive.