sudo easy_install pyserial
at the prompt to install PySerial.ls /dev/tty.usbmodem*
to find the device name of the mbed USB serial connection.sudo easy_install pyserial
to install PySerial.ls /dev/ttyACM*
to find the device name of the mbed USB serial connection.