Fix notation in rbm_tools and go over blocks.py

I had ignored blocks.py because it wasn't listed in
pylearn2/doc/library. There are no major changes.