Avoid duplicated indices
Add new translation method in elect.py