Textually simpler, but functionally identical, CADRE_mdp.py