Update ipythonblocks/ipythonblocks.py

Just used unpacking assignments to simplify
the code a little and minimize unnecessary indexing.