Python Create Key Value Data Definition