Python port of GroundCoffee