Python Create Key Value Database Diagram