update of log.py