Made local variable reference to fix cython 0.21
Merge pull request #2466 from inclement/cython_fix

Made local variable reference to fix cython 0.21