Update get_profile.py

key error demolished