a pure Python3 HDLC implementation