added code to release the GIL around potentially blocking operations (wrap, unwrap, init_sec_context, import_name)
cleaned up the code with some macros (for capsules) and functions (for parsing the flag lists)
added a method to build a list of flags to return
added method to return the mech type