python parser to behave in a similar way to the c parser when no headers in message