def get_installed_pypackages():
    return {p.project_name.lower(): p for p in pkg_resources.working_set}
def close_log_streams(self):
        """ Closes all log_stream streams. """
        while self._logging_handlers:
            self._logging_handlers.pop().close()