Update downloader.py

Tweaks to support pids with sids.