Allow to replace some standard classes

I was wondering if it would be possible to add a similar behaviour for trytond.pool.Pool

I had to do this :

because I wanted in a module to run some validation code once the pool was fully loaded.