Python Execute Function From String To Timestamp