Api Calls Using Python Dictionaries And Sets