small producer-consumer library in python