In your code alignments.py, I can't find the declaration of get_estimated_alignment_matrix in row 49, maybe it's missing.