Fixed it

got the form to stop displaying twice, once data was collected. I had
the self.response.write in the wrong place