Write Lines Method In Python Example