Fix last_down_time for old python