[#1859] Clean pyc files, speed up directory delete operation, fix Windows newlines conversion.