the datetime module isn't included by default. you need to import it
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!