Refactored is_x boolean methods in unit module.
Merge pull request #362 from rockdoc/units_is_x

Refactored is_x boolean methods in unit module.
Attempt to fix pep8 issues in cube.py. long lines in code example docstrings remain.