Updated upbot.py