Python Convert String To Callable Functions