add error event
update history
pep8 & pyflakes