changing file extension in Python,os.path.splitext('name.fasta')[0] + '.aln'