def native_conn ( self ) : if self . __native is None : self . __native = self . _get_connection ( ) return self . __native
python how to preserve a connection in
Native connection object .
def native_conn(self):
        """Native connection object."""
        if self.__native is None:
            self.__native = self._get_connection()

        return self.__native