Fix compilation warning when building against python 3