blocks.py converted to PEP8 format