repair python alignment