That is of course an easy solution but I would argue that this is just throwing more resources at the problem. Not a very impressive optimization.
Emery Berger has a great talk [1] where he argues that it is mostly pointless to optimize python code, if your program is slow, you should look for a properly optimized library to do that work for you.