fix numpy.i for python 3

PyFile_Check and PyInstance_Check have been removed from the C API
for python 3.  This removes calls to those two functions from
numpy.i for PY_MAJOR_VERSION >= 3 so that it builds with a
python 3 Python.h.
BUG: Fix segfault in np.result_type for None input.

Makes behavior identical to np.dtype(None), which fits to how
the function works.
Merge pull request #2933 from seberg/result_type-segfault

BUG: Fix segfault in np.result_type for None input.
BUG: gh-2935, fix printing of scalar float -0.0.

The issue was that the string value of scalar floating types equal to -0.0
lacked a trailing ".0".

    >>> print np.float64(-0.0)
    -0

The problem resulted from using val < 0 to check for a leading negative
sign. That expression evaluates false when val = -0.0, and the need to
append ".0" was not detected.
TST: Add test for printing of scalar values.
Merge pull request #2936 from charris/fix-print-negative-float-zero

Fix print negative float zero
Merge pull request #2923 from baeuml/swig-fix-python3

fix numpy.i for python 3