Fix timedelta and IOLoop