import struct


def parseHeaders(headers):
  """ Parse the headers and return the values"""
  headerTuple = struct.unpack('!HBB', headers)
  seqNum = headerTuple[0]
  sessionID = headerTuple[1]
  flags = headerTuple[2]
  return seqNum, sessionID, flags