fix stdout pip to file