writing of probabilities to normal file instead of pickle