Ok, I have a preliminary feature to transfer Expressions to a PoseLibrary. I PR'ed and approved it. I ended up using the directory ops calls with some changes to get pose available to Blender.
These 2 calls give me both the make human & user directories. I just then read each .mhpose file directly in Blender, so no need to gather up info in MH pass it back, then go through it in Blender.
The SyncPose operator is then called in a loop, passing the file name of the expression to return. The result of the call is saved in the poselibrary with the name matching the name field in the .mhpose file.
Only problem is I do not know near enough about MH to actually change the expression in code. It creates all the poses with the right names, but they are all the same expression. Help, please.