import struct import itertools with open("the-maze", "rb") as f: contents = f.read() pos = contents.find(struct.pack("