Fixed PEP8 errors on comments.

Also moved Sphinx and numpydoc install to before_deploy because
it only needs to be performed for when the documentation is being
deployed.