A Python based database system for optimized search