Fixed a couple errors with localio.py