Minor bugfixes to robot.py after pylint