fix python version issue; < 2.7 doesn't have deltatime total_seconds function