Move sphinx to docs requirements.
Replace xrange() with range() for python 3.2 compat.
Ignore "undefined name" warning from flake8.
Fix flake8 warning about whitespace around operator.
Temporarily disable pypy testing.