Worked out how to code a the ramsey model in Python.