Fix syntax error in block.py script.
Add a new (failing) test.
Fix new test.