Fix bug in python snippets, wrap a datetime call in str() before concat it to a string.