@robertiii , I think you meant to provide a link in your post, but there is no link. Anyway, i am not exactly sure what you are trying to do. But there is this ui method called, ui.dump_view(view). I am not sure if its only in the beta or the store version also. But it seems to me this could solve your problem if I understand it correctly. I haven't used this method before, as i just seen it recently.
Eg. Given a view that is displayed, you could use this method to get the json string version of the view. You could save it to disk as a pyui file or pass the json str to ui.load_str() to basically recreate/copy the view.
In the beta, the method is described below:
ui.dump_view(view)
Serialize a view as a JSON string. The return value can be saved as a .pyui file or it can be passed to load_view_str() to reconstruct the view later.
Custom view attributes are not supported, and images in image views and buttons are only saved if they were loaded from a built-in image (i.e. using ui.Image.named()). Overall, the limitations of this function are similar to those of the visual UI editor.