a simple producer-customer model by python