def delicious_datetime(str):
 return datetime.datetime(*time.strptime(str, ISO_8601_DATETIME)[0:6])

def delicious_datetime ( str ) : return datetime . datetime ( * time . strptime ( str , ISO_8601_DATETIME ) [ 0 : 6 ] )
parse a iso 8601 formatted string to a python datetime .