Last year, Luís Gustavo Kray de Carvalho started learning Python to help out with his rigging work in Maya. As a personal challenge, he decided to write a script to automate a ribbon setup. While he now recognizes there are many aspects, both in the system design and the code, that he would approach differently, he still considers it a fun project and one worth sharing.
You can try the script here and examine Amaresh Beuria’s Rubik’s Cube rig implemented in Python: