Update get_pid.py

writ out as well id (CKAN name) list