python-config: improve a bit more the script to not show duplicates