Refactor process_blocks.  Relax stringent type checking in shape.py.
Merge pull request #1 from stefanv/colincsl_block-process

Refactor block process.