FileEncoding

to convert a folder of files encoded for dos to linux do:

find . -name "*.py"|xargs -i recode ibmpc..lat1 {}

this will change the encoding and line breaks. for line break converting also see ReplaceWindowsLineBreaks.