old_contents: import os
  from beets.plugins import BeetsPlugin
  
  class RemoveArtFile(BeetsPlugin):
      def __init__(self):
          super(RemoveArtFile, self).__init__()
          self.register_listener('album_imported', self.removeartfile)
  
      def removeartfile(library, album):
          # self._log.info(u'Going to delete {0.artpath}', album) # TODO
          # print album.artpath # TODO
          if album.artpath is not None:
              os.remove(album.artpath)
  
new_contents: import os
  from beets.plugins import BeetsPlugin
  
  class RemoveArtFile(BeetsPlugin):
      def __init__(self):
          super(RemoveArtFile, self).__init__()
          self.register_listener('album_imported', self.removeartfile)
  
      def removeartfile(library, album):
          # self._log.info(u'Going to delete {0.artpath}', album) # TODO
          # print album.artpath # TODO
          if album.artpath is not None:
              # print type(unicode(album.artpath, "utf-8"))
              os.remove(unicode(album.artpath, "utf-8"))
  
subject: convert path to unicode