Return message type in poll, python reads full poll message

* Changed the serial get_line() function to read one character at a time
and propertly parse data messages