log.py give some time to flush