Update smarter.py