Fixed #defines to work with npy_3kcompat and bytes.
npy_3kcompat redefines old PyString_X to use bytes, but this breaks
compatibility with python code expecting new strings. The solution is to
use PyUnicode wherever possible instead of PyBytes.
Fixed CURAND wrapper to work with capsules.
The capsule API destructor gets passed a pointer to the capsule, not the
underlying C object as in the old PyCObject API.
Fix Shape op C code for unknown types.
Merge pull request #1422 from HapeMask/py3k-fixes

Fix CURAND Wrapper in Python 3