Two python scripts

1. remove duplicates in list
2. divide a list to two lists so their distance is smallest