Update cycles.py

Speeding up simply_cycles.