disable C compiler warning about unused helper function in Py2