Move the full_slice declaration outside this python for loop. You don't need to create it for each cdna, but only once.