Fix log.py imports