David Siedband wrote: > [...] > Is there a better way to do this? > [...] Take a look at Biopython: http://biopython.org/ Your problem may be solved there already.