I forget python is not all that optimised
yeah, it's partially a case of "it's really hard to optimize languages that let you do this much unhinged stuff" and partially a case of "Python has a lot less effort put into it than JS, because the latter runs in everyone's browsers"