Fixed remaining pep8 formatting errors in cube.py
Removed unused variables from cube.py