Python Create Function Name From String To Datetime