grab the GIL for incref/decref
added pn_record_has
perform decrefs last
use proper comparison
updated python bindings to use a simpler and more robust wrapping strategy