Moving "cuentitas" auto-planner from R to Python.