python_implementation is a function

Correct e1e2538d