Am testing sunlight with Python 3. To run on Python 3, changed dict.iteritems() to dict.items()