def as_ompenv(cls, obj):
        """Convert an object into a OmpEnv"""
        if isinstance(obj, cls): return obj
        if obj is None: return cls()
        return cls(**obj)
def as_ompenv ( cls , obj ) : if isinstance ( obj , cls ) : return obj if obj is None : return cls ( ) return cls ( ** obj )
Convert an object into a OmpEnv