Luca clementi <luca.clementi at gmail.com> added the comment: I forgot to say that the \n should be substitute with \r\n CRLF Luca ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue5525> _______________________________________