Implement new syntax for python blocks
Do not render empty python blocks.