getting results side by side from generator, writing to file