Python Create Function Name From String To Json