Let's say 'time1' is the key of a dictionary, eg, feb2012. So you're trying to index the string, but you can only this with integers.
for info in courses[time1][course]:
when you iterate through each dictionary, you must add another nest.
Hope this answer helps you!
If you wish to learn more about Machine Learning, visit the Machine Learning tutorial and Machine Learning Course by Intellipaat.