replaced python datetime with numpy datetime64 and timedelta64 functions