Fetching Data From Api In Python Class