Changes from complains from pycharm.
Added line ending check