PEP8 for blocks.py

And use new style class constructor