#! /usr/bin/env python
# Square script
# Executed when asked to draw a square by the user
# Draws a 45cm square

import serial
import create
from time import strftime

# Create robot
robot = create.Create("/dev/ttyUSB0")
robot.toFullMode()

while True:
  sensors = robot.sensors(create.LEFT_BUMP, create.RIGHT_BUMP)
  if sensors[create.LEFT_BUMP] == 0 or sensors[create.RIGHT_BUMP] == 0:
    # Draw square
    robot.move(45, 30) # ~12.5" equivilent in cm, rounded up; at 30cm/s
    robot.turn(-90, 60) # 90 degrees clockwise, 60 degrees/s
    robot.move(45, 30)
    robot.turn(-90, 60)
    robot.move(45, 30)
    robot.turn(-90, 60)
    robot.move(45, 30)
  else:
    robot.move(-15,30)
    robot.turn(-90,60)

@@ -272,16 +272,17 @@
 sensors(
+%5B
 create.L
@@ -308,16 +308,17 @@
 GHT_BUMP
+%5D
 )%0A  if s

Update square.py