JavaScript is single threaded and cannot offer the top notch performance compared with other programming languages, even with many tweaks developers have improved JS with like "Async" which is used to mimic the process of creating a new thread, though it is not in reality.
I'm not sure about python as I haven't used it much though.