Update brain.py