Python Generate Hash From String To Datetime