debugging split error and writing to logfile from subprocess afterpickling and adding buffering to incluster pickle file