Imported utils in robot.py and did corresponding fixes