Brewing tool in Python