beer loop in python