Improve memory usage when combining files

Simply code in parallel_predict_traits.py and more importantly
ensure only one of the output files is combined in memory at a single time.