Fixed cython.wraparound(False) bug in scipy/spatial/ckdtree.pyx
Merge pull request #2435 from patvarilly/ckdtree-negative-index-bugfix

BUG: spatial: Fixed cython.wraparound(False) bug in scipy/spatial/ckdtree.pyx

Two wrapper methods in ckdtree.pyx (query and count_neighbors) were marked with decorator @cython.wraparound(False), but one of them (query) referred to np.shape(x)[-1]. Since these methods are only wrappers to the methods that do the real work (__query and __count_neighbors_traverse) and are not performance critical, simply remove the @cython.wraparound(False) wrapper. This preserves code clarity and fixes issue gh-2427.
Improve distribution fitting as described in ticket #1553
http://projects.scipy.org/scipy/ticket/1553
Restored nnlf function and added _penalized_nnlf
Simplified the fit method.

Made sure fit_loc_scale method returns finite values in order to avoid failure in the fitting of the distributions
TST: stats: enable the distribution fitting tests
DOC: stats: add cautions to the fit method
STY: stats: in fit(), don't check for out-of-range points if allowed range is [-inf, inf]
TST: stats: turn off floating point errors in fit tests
Merge pull request 462 from pbrod/ticket1553

ENH: stats: Improve distribution fitting

Use a gradually penalized NNLF in MLE fitting, rather than one that returns inf
even if one point is outside the support of the distribtuon, confusing the
optimizers.
DOC: rename README.txt to .rst for better rendering on GitHub
Merge pull request #523 from kermit666/patch-1

Rename README.txt to README.rst