Updated for the serial python wrapper