More Pythonic Context Manager Wrapper
I think what you are doing is crazy, but yes, you can use Python’s library functions to clean it up.

from contextlib import contextmanager

@contextmanager
def context_wrap(target):
    yield target


Again, this is busy work.

alias = thing


is clearer, shorter and faster than

with context_wrap(thing) as alias: