Make spell test Python3 compatible