python: add tests for raw formating
python: improve raw formating code
python: replace ``havesize`` taking advantage of ``0 == False``
python: more tests for packing
python: factorize iterative behavior
python: fix a bug in S10S and 10SS when they are padding \0
python: other small improvements