def forward_right(t): gpio.output(40, gpio.HIGH) gpio.output(31, gpio.HIGH) sleep(t) gpio.output(40, gpio.LOW) gpio.output(31, gpio.LOW)