I’m not sure if you know this, but Python and JavaScript are different languages. Their libraries are different ecosystems, so that’s definitely a hallucination.
Yes, but the names are not hallucinated
They being python is the hallucination- the names exist in its training data