Convert DOS line endings to Linux line endings
Using dict.pop method is more pythonnic