A more idiomatic way to do this would be `return from_python(result)`.