Python Write File To Pathology