Change the `diagrams` tool to remove a dependency on the standard library