def METHOD_NAME(curPacket, curPos):
	thePat = pat.parse(curPacket[curPos:])
	curPos += pat.sizeof()
	entryCount = (thePat.sectionLength - 9) / patEntry.sizeof()
	for i in range(entryCount):
		curEntry = patEntry.parse(curPacket[curPos:])
		curPos += patEntry.sizeof()
		if curEntry.programNumber == 1:
			return curEntry.programPID
	return None