Corrects python code snippet in code block.