This is more for already-economists who want to learn the Python toolchain for their work, I think.
I do time series analysis (non-economic). So for example having a Kalman Filter python cookbook example is useful if I know the algorithms I want to use, but not the python libraries.
I'd say the specific topics covered (macro questions like optimal savings, optimal taxation, etc) are what makes it an economics text, although you're right that much of the technical topics covered are applications of non-econ-specific algorithms and modeling techniques.
Sargent is associated with "freshwater" macroeconomics. They tend to be very rigorous to the point of dropping topics considered important by other economists from their models.
For instance, here's how many times the following words appear in it:
I'm no quantatative Economist, but in what way is this an economics text, as opposed to just an algorithms/modeling text?(I'm not saying it ISN'T an economics text... I'm just hoping someone can genuinely answer my newbie question :-)