Update code blocks to be Python.