fix incorrect or unused imports
import star is frowned upon, 80char lines for import statements
80char a lot of things
only one statement a line and some other pep8 stuff
symlinks do not work under windows, so we hardcode cuckoomon-bson
reuse random-string function from lib-common-rand
check whether bson is available when using bson logging
small logical error in irc module
typo in utils-submit
typo when using magic library