fixed double line endings in event files on windows, dictwriter now gets filen handle openend with wb flag