Refactor: python: Update the logging module.
- Only expose the LogFactory class, which is the only thing any outside code was using anyway.
- Add spacing throughout.
- Get rid of the return value from writelines, which was never used.
- Move the arguments from the init methods of subclasses of Logger to the init method of Logger itself. This way, the subclasses have the same argument list as their base class.
- Turn self.debug_target into a property.
- Fix pylint suggestions - use "with", don't inherit from object.