python version of timelog