import from consumer.py only in standalone-mode

otherwise causes circular-import errors