from CommonCode import kwq topic = 'whatsup' kwq.producer.send("hello",'world') for x in range(100): kwq.producer.send(topic, 'num_'+str(x))