Here is a minimal, testable example of some code I have written to read NMEA data being provided to the UART of the RaspberryPi. I am running this with python3. I
python3