; (B) no funds may be obligated or expended under subsection (g) with respect to such former President except to the extent necessary to maintain the security of such former President, as determined by the Director of the Secret Service; and (C) such former President shall repay any amounts received under subsection (a) during the period beginning on the date on which such former President is initially convicted of the felony and ending on the date such former President is finally convicted of the felony. (2) The term finally convicted means a conviction— (A) which has not been appealed and is no longer appealable because the time for taking an appeal has expired