query json from embedded py