Eliminate import __future__, logging, traceback unless debugging.
Extract module logger.