This may be a very noob question, but I\'m really struggling to create efficient python code. Background: I\'m trying to get data via an API and extract that data into a CSV