Python code to retrieve metadata and thumbnails from digital repositories and collections