BUG: fix scipy.io.mmread() of gzipped and bzip2ed files under Python3

fixes #2152
BUG: sparse: fix bugs in dia_matrix.setdiag

- hide details of the internal dia_matrix data representation in
  setdiag(), so that behavior matches the other spmatrix types

- fix bugs in resizing self.data, which doesn't always have
  self.shape[1]==N

- add scalar broadcasting behavior to setdiag() for all matrix types
BUG: sparse/dsolve: detect invalid LAPACK parameters in superlu and bail out gracefully
TST: test if fix for #2152 works
ENH: Add k-sample Anderson-Darling test to stats module
API: Speed up and implement both version for discrete distributions for k-sample Anderson-Darling test

1. Change call signature to have array of arrays and optional keyword to
   specify which version of the k-sample AD test should be computed.

2. Get rid of all inner loops and list comprehensions by using
   np.searchsorted.

3. Both version given by Scholz & Stephens for discrete sample can be
   computed now.
MAINT: address review comments on stats.anderson_ksamp addition.

Changes:
STY: Replace "&" with "and: in citation and add year in stats.anderson_ksamp
     and stats.__anderson_ksamp_both
MAINT: fix typo in docstring stats.anderson_ksamp
STY: add blank lines after if blocks in k-sample Anderson Darling routines
STY: Use ... for line continuation in docstring in stats.anderson_ksamp
DOC: Add comment to explain interpolation values stats.anderson_ksamp
STY: capital letter for each parameter description and period at end in
     k-sample Anderson-Darling docstrings
MAINT: combine a few simple statements in stats.anderson_ksamp
API: Change call signature of stats.anderson_ksamp

- Replace discrete=False with midrank=True to better explain what the
  difference between tests is. Update the docstrings accordingly.
MAINT: avoid computation of lj for continuous dists in stats._anderson_ksamp_midrank.

Also fix docstring for parameters.
TST: fix test failure for stats.anderson_ksamp with numpy 1.5.x

Due to ``np.testing.assert_warns`` returning None for that numpy version.
Merge branch 'pr/3183' into master.

Review at https://github.com/scipy/scipy/pull/3183
Merge pull request #3314 from andreas-h/gh2152

BUG: fix scipy.io.mmread() of gzipped files under Python3
BUG: io/mmio: fix fromfile compatibility detection
MAINT: skip float96 tests on platforms without float96
Merge pull request #3383 from argriffing/optional-float96

MAINT: skip float96 tests on platforms without float96
MAINT: add pyflakes to Travis
MAINT: initialize variables to make pyflakes happy

The variables will receive their values during the running of the value.
BUG: fix missing imports etc typos found by pyflakes
BUG: io/arff: remove dead code

The `types` and `r_mend` variables are undefined, making the routines
tokenize_multilines and floupi inoperable.
BUG: sparse/bicgstab: remove call to undefined routine

There's no routine get_psolve. Just assume psolve is given.