write instead of append for output file
numpy versions, but multiprocessing doesnt work
working multiprocessing numpy version