python project for parsing and evaluating a query from an inmemory database