Python File Write Line With Markers