Creating Animation Blueprints / Control Rigs using python scripting

Like the subject says, I was hoping to generate Animation Blueprints and Control Rigs using python scripting (not the 20tab plugin, but the built-in python intergration), but that seems far from straightforward.

I can easily create the assets, but populating them is a bigger issue.

The closest I’ve managed to get is listing the existing nodes in an animation blueprint using unreal.ObjectIterator.

Does anybody know if this is possible at all?