Postgresql Table Inheritance Example In Python