Get Api Request Using Python Dictionaries And Sets