What I need to accomplish:
Given a binary file, decode it in a couple different ways providing a TextIOBase API. Ideally these subseque
TextIOBase
A simple solution would be to return the variable from the function and store it in script scope, so that it does not get garbage collected until the script ends or the reference to it changes. But there may be other elegant solutions out there.