Refactor mytime_harvest.py