code: def do_serial(self, p):
  		
  		try:
  			self.serial.port = p
  			self.serial.open()
  			print 'Opening serial port: %s' % p
  		except Exception, e:
  			print 'Unable to open serial port: %s' % p
docs: Set the serial port, e.g.: /dev/tty.usbserial-A4001ib8