I noticed some mixes of spaces and tabs and while at it, I've style it a bit more according to pep8, while not trying to mess up your code too much.
I fixed some typos, like log to LOG, where you used it in capital, and somewhere else where it was log.nfo to log.info.
Rewritten a few code line, from "if value == False", to "if not value".
commented some unused imports and things like that.
Hi Johan,
I noticed some mixes of spaces and tabs and while at it, I've style it a bit more according to pep8, while not trying to mess up your code too much.
I fixed some typos, like log to LOG, where you used it in capital, and somewhere else where it was log.nfo to log.info. Rewritten a few code line, from "if value == False", to "if not value". commented some unused imports and things like that.