python subprocess with gzip,p.stdin.close()