Moved declaration of PyObject variables to enable compiling on Windows.