I tried tweaking it a bit and couldn't figure it out, but somehow `sys` within `_logging.py` is getting turned to `None` by these commands.