LogFile: clean up imports (we don't need to check stuff below Python 2.6