I would love to be able to use gpgme_op_interact from python. However, all that exists right now is the SWIG binding which appears a bit buggy.
I've got it to at least run the callback function from python but I couldn't figure out how to actually give commands.
For now I'm using a few simple C programs as a workaround:
https://salsa.debian.org/tookmund-guest/gpgme-editkey
So an interact_key function or perhaps an edit_subkey option would be much appriciated