def fetchart(self):
            
        artist = request.GET.get('artist', '').encode('utf-8')
        album = request.GET.get('album', '').encode('utf-8')
        response.headers['Content-type'] = 'image/jpeg'

        try:
            aa = AlbumArt()
            aa.album_fetch(artist, album)
            img = aa.disk_path
        except NoArtError:
            response.headers['Content-type'] = 'image/png'
            img = 'theory/public/img/noart.png'


        f = open(img, 'rb')
        data = f.read()
        f.close()
        return data
creates an AlbumArt object and attemps to load the image from disk.
dataset/ETHPy150Open ralfonso/theory/theory/controllers/main.py/MainController.fetchart