More refactoring of logging.
This commit basicly deprecated/drops support for python 3.1 because that release is now deprecated.
This commit alot fixes some issues for python 2.7 and loosen the "2.7.x python will not be supported" thing