Python Execute Function From String To Date