hi,
In pbauto.py v1.2.13077: it looks like functions with next/last functionality are making spurious calls to a non-existant function ByteUtil.write_byte().
replacing this with .write_bool() and supplying True/False booleans for next/last seems to be a clean fix.
i suppose duplicating the write_bool() def in ByteUtil and naming the copy write_byte would work too, but it seems dirty.
I was going to update it on git but got confused about where post the fix. So I'm putting it here instead.