How to get data from API into Python