Made str_to_alignments/1 and inverted/3.
pylint 10/10