Fix cython 'python temp coercion' exception.
Merge pull request #2352 from matham/python-temp

Fix cython shader 'python temp coercion' exception.