first sketch of a python translation of the pythin like SQL code