Update smartrobot.py

out of index bug