title: Python: writing from ftp to file, doesn't do newline
body: <p>I'm trying to write a text file from an ftp site to a file on my machine, like so:</p>
  
  <pre><code>ftp = FTP(ftpName)
  ftp.login()
  ftp.cwd(filePath)
  foo=open(myFile,"w")
  ftp.retrlines("RETR stlint",foo.write)
  ftp.close()
  </code></pre>
  
  <p>the file is writing successfully, but when I open my file, there are no newline characters. Any suggestions? </p>