python: Define a macro for wrapping fragile result objects.
* lang/python/gpgme.i (wrapresult): New Macro.
This reduces the amount of copy and pasted code at the expense of a
slightly more complicated logic with a macro.
- Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>