Use ZopeRepository containing postgres utility methods. Added more useful python part.