python3 port of iso8601