def print_query(results):
 print('Query Parameters:')
 query = results.get('query')
 for (key, value) in query.iteritems():
  print(('%s = %s' % (key, value)))
 print()

def print_query ( results ) : print ( 'Query Parameters:' ) query = results . get ( 'query' ) for ( key , value ) in query . iteritems ( ) : print ( ( '%s = %s' % ( key , value ) ) ) print ( )
the query returns the original report query as a dict .