Revert "Dropping 5 useless lines."

This reverts commit aa6debd78babc0fc3c2e96808a1e73f18bd1b462.

Oops, only work in Python 3.4.
Add a default value to headers.