Minor cleanups

trying to avoid the bare `import kafka` (which is circular) .  perhaps we should `import kafka.common` instead?