simplifies the method signature toPython
export the function generator