The writeheader method is in 2.7

Since we are in 2.5 I can't use it. How annoying. In addition, we use the
writerows method as it is shorter.