PEP8 and english

Remove to many spaces
Translate some comments and docstrings to english
Add comments about possible crash locations

These need to be fixed.
Add try/exception to prevent crash in writer

Bad events will be discarded
PEP8 fixes