Fixed bug in robot.py and gamepad.py scripts

Both scripts are working. The robot.py needed to return some value
otherwise, the gamepad.py script would freeze. I may need to look into
using UDP. I will start testing on the RPi itself soon.