import requests import xmltodict import json def reload(): bookshelf_xml = requests.get("https://magpi.raspberrypi.com/bookshelf.xml") return xmltodict.parse(bookshelf_xml.content)