Python 2.6's DictWriter doesn't have writeheader, so fake it with join.