Python object database with SQL searching of attributes