Fix excessive logging after executing conda functions
This MR fixes repetitive logging that occurs after executing conda functions. After inspection, conda alters the root logger of the logging module by resetting its level and adding 2 handlers that communicate directly to stderr. This MR introduces a context manager that undoes this inappropriate change. To use it, it is sufficient to write calls to the conda API with context manager.