Attempt to fix pep8 issues in cube.py

Long lines in code example docstrings remain. The diff is too big for github. A sure sign that I should have broken this up into smaller bite sized chunks.