Update 531.py

Realized that when saving your log, the cycle is not looked at at all. Obviously this is an issue, and your schedule / log will be different. Now fixed.