blast = NCBIXML.parse(open('results.xml', 'rU'))
for record in blast:
    if record.alignments:
        print(record.alignments[0].hsps[0].expect)
print(record.alignments[0].hsps[0].score)
break
How to extract the first hit elements from an XML NCBI BLAST file?