import timegmt = time.gmtime(time.time())fmt = '%a, %d %b %Y %H:%M:%S GMT'str = time.strftime(fmt, gmt)hdr = 'Date: ' + strprint hdr