Switch to python standard logging.
Merge branch 'new_logging' into dev