Update blocks.py