Modify log.py