Fixed log.py