add import datetime

needed to fix a crash when running our pre-commit hook