Fixed example in doc string

We have to pass a HTTPHeaders object to write_headers()