A library for building models of economic activity