First version of remove_duplicate_features.py