Reaction Functions, Optimization, and Politics: Modelling the Political Economy of Macroeconomic Policy