from serial import Serial
from pynmeagps import NMEAReader
with Serial('/dev/tty.usbmodem314101', 9600, timeout=3) as stream:
  nmr = NMEAReader(stream)
  raw_data, parsed_data = nmr.read()
  if parsed_data is not None:
    print(parsed_data)

