Mostly cleanup of nano.py and nano-log-fix