Fixed merge errors and moved logging inits to const.py, now in a runnable state.