It would be nice to make groups available for encryption with GPGME. Would it be possible to add a function e.g. get_key_groups which returns a list of key objects for a given group name?
A work-around is now available for this in Python in the GPGME source. The relative path from the top of the GPGME source directory is here lang/python/examples/howto/groups.py. Like all the other scripts in the same directory, it also appears in the GPGME Python Bindings HOWTO, under the Miscellaneous heading near the end.