def make_zip_handler(zipfilename, max_age=None, public=None):
 class CustomZipHandler(ZipHandler, ):
  def get(self, name):
   self.ServeFromZipFile(self.ZIPFILENAME, name)
  ZIPFILENAME = zipfilename
  if (max_age is not None):
   MAX_AGE = max_age
  if (public is not None):
   PUBLIC = public
 return CustomZipHandler

def make_zip_handler ( zipfilename , max_age = None , public = None ) : class CustomZipHandler ( ZipHandler , ) : def get ( self , name ) : self . ServeFromZipFile ( self . ZIPFILENAME , name ) ZIPFILENAME = zipfilename if ( max_age is not None ) : MAX_AGE = max_age if ( public is not None ) : PUBLIC = public return CustomZipHandler
factory function to construct a custom ziphandler instance .