don't use writeheader() in DictWriter, support for python < 2.7