def run_chunk(environ, lowstate):
 client = environ['SALT_APIClient']
 for chunk in lowstate:
  (yield client.run(chunk))

def run_chunk ( environ , lowstate ) : client = environ [ 'SALT_APIClient' ] for chunk in lowstate : ( yield client . run ( chunk ) )
expects a list of lowstate dictionaries that are executed and returned in order .