import dateutil.parser
import yaml

def timestamp_constructor(loader, node):
    return dateutil.parser.parse(node.value)
yaml.add_constructor('tag:yaml.org,2002:timestamp', timestamp_constructor)
Can PyYAML parse iso8601 dates?