Maybe they're looking for resourcefulness. When we ask candidates to implement hex(), obviously they can't use the hex() builtin, but they can use any other. We also let them google whatever they want. If they find the exact answer, that's fine, we're going to ask some followups to make sure they understand what they just copypasted.
We're primarily a C/C++ development shop, but our test system is in Python. We ask our C/C++ engineers to build an index(like the back of a book) from a file of unknown size. That requires a bit of work in C but is dead easy in Python. Bad interviewers try to compensate for this by trying to take away from Python what makes it Python. Good interviewers ask a different question.