Itemcommand Contains Function Python Format Datetime Object