instead of isinstance use is_timedelta_object
what has a delta attribute?