ah, that makes sense! i saw "from datetime import datetime" just a little bit above but just doing
"init python: import datetime"
at the top of the script worked. thanks!