diagram_definition = (
    '\n   seqdiag {\n      browser  -> webserver [label = "GET /index.html"];\n      browser <- webserver;\n   }\n'
    )
tree = parser.parse_string(diagram_definition)
generate uml sequence diagrams with python or perl