Pickles can load the sesion directly from a buffer as provided by PsycoPG2.