Python Class Run Function Python Format Datetime To String