some python code while debugging kafka..might be handy