Since the latests release, I get an error when reading ptw files using ryptw.readPTWHeader().
On line 417, 7 bytes are read and then passed to mybyte(), which checks if it receives only one byte and throws an error otherwise.
Header.h_Reserved134 = mybyte(headerinfo[134:141])
def mybyte(x):
# will return an error if x is more than a byte length
ans = ord(x)
return ans
This throws an error in this case, but I'm not sure this is intended.
Something similar is done on lines 425 and 448