Code cleaning, better logging in responses.json_get()