>>> import datetime >>> datetime.datetime.utcnow().isoformat() + "Z" '2013-07-11T22:26:51.564000Z' >>>