#318: helper.py, remove 'non-duplicated' elements from 'dic'