Alignment using python string parsing and GramAlign in c