Newbie here - how to integrate with existing ecosystem

Yes but if the original time had a Z in it (implying UTC) Python will convert that as a local time not a UTC time.

Just convert it to an integer for absolute safety!

Missed that bit, I’m referring to the standard Library.