Python Create Function From String To Object C