Fix misformatted example in cycles.py

Addresses #1196.