I'm working in linux environment. if a text file is saved in Windows, it will end in ^M Is there a .... elegent way to check this using python?