Fix py3 logging duplicate