Death row inmates to write exams in Uganda