wrapper function python example