Fix #1537721: add writeheader() method to csv.DictWriter.

Reviewed by skip.montanaro and thomas.wouters.
4 files changed