Update analyze.py

added the remove duplicates part. not the prettiest code i'v ever written, but i guess itll do the work... dardik