Python Execute Function From String To Int