Merge pull request #1422 from HapeMask/py3k-fixes

Fix CURAND Wrapper in Python 3