Adds python-specific code blocks.