Write And Write Lines Function In Python Example