Improve query readability and remove assert

Improve readability of get_leads API query
Replace assert with check and rase SalesforceError