https://kimlud.co/tech/context-managers-beyond-opening-files-in-python/
Context Managers Beyond Opening Files in Python