test producer and consumer using python.