Python script for filtering a fasta file