workaround to avoid 'obtaining char* from temporary Python value' warning in cython 0.20.2