Defined a macro to convert gphoto2 error to Python