imports fix, 500 on undefined "timedelta" (fix #2492)

@natehardison