I\'m analyzing some data received by serial port on Raspberry, and after parsing them, using pynmea2 library I want to check if analyzed sequence is one type or another. To