Create robot.py

Implementation of robot's input and output