still don't see why this one function is in a separate module, since it deals with format stuff, should go in `format.py` module?