Python parser to behave like c parser when no headers in message

Just discovered that the python parser does not behave the same way as the c parser when a client receives a message without headers (check the `test_no_headers` below).
Maybe this little fix could do the trick?