How To Recursively Parse API Responses Using Python