how to make api requests in python