Make TestFFTThreadSafe tests Py3-compatible