def env_func(f, argtypes):
 f.argtypes = argtypes
 f.restype = None
 f.errcheck = check_envelope
 return f

def env_func ( f , argtypes ) : f . argtypes = argtypes f . restype = None f . errcheck = check_envelope return f
for getting ogrenvelopes .