Prevent exception being thrown in Pool.__del__ on application shutdown due to self._core being have destroyed by stuffing the three needed methods into the Pool class object. The apr_initialize call in Pool.__init__ has also been moved into a more logical place to ensure it gets called before svn_pool_create when creating the application-level Pool object.