Fix python block syntax