PackBits encoder/decoder for Python