Added MPIDE code

This is the way I am handling the serial events sent from python