Fix GzipFile instance has no attribute '__exit__'