Update swarm.py