How To Replace A Line In Python