Some stability fixes

- Replace [] operator with .get where erors were known
- Do not raise Windows-specific WSAEWOULDBLOCK errors just like EAGAIN errors
- Print 'Score' instead of 'Time' in monitor when in IOI mode
- Log team and contest id in emails
Fix some style errors from pep8 and pylint
Merge branch 'master' of github.com:AVBelyy/TSWeb