close python code block