Python Create Function Name From D