Created classes for Postgres and Python out of OpenERP shell script