Migration from python’s builtin datetime