Oops... forgot to include the list as recipient.

Matthew Wilson skrev:
So, how do I force python to put that Z at the end when it dumps
datetime objects out?
  
You could set another representer for datetime objects:
>>> import yaml, datetime
>>> yaml.add_representer(datetime.datetime, lambda self, data: self.represent_scalar('tag:yaml.org,2002:timestamp', data.isoformat(' ') + ' Z'))
>>> yaml.dump(datetime.datetime.now())
'2009-03-05 09:16:09.968000 Z\n...\n'
>>> yaml.load(_)
datetime.datetime(2009, 3, 5, 9, 16, 9, 968000)