Worth mentioning is you don't really need a actual tempo for a song unless your planning on recording more midi instruments, like piano that you wish to quantize.
But what Kev has recommended is what I have done,,, once, it was a lot of work. After that I just use my ears and edit any bad piano timing issues if I hear them, faster.
I find if a song has a wanderning tempo , best to not try and fight it into a timing box, just let it roll..