Update device-pharmer.py

Updated how titles are found for more accuracy