update expand string for python function definitions