Update beads.py