old_contents: from subprocess import check_output, CalledProcessError
  import json
  import shlex
  
  
  class Exif(object):
      def __init__(self, file):
          self.file = file
  
      def data(self):
          try:
              data = check_output('exiftool -time:all -mimetype -j %s' % shlex.quote(self.file), shell=True).decode('UTF-8')
              exif = json.loads(data)[0]
          except (CalledProcessError, UnicodeDecodeError):
              return None
  
          return exif
  
new_contents: from subprocess import check_output, CalledProcessError
  import json
  import shlex
  import sys
  
  
  class Exif(object):
      def __init__(self, file):
          self.file = file
  
      def data(self):
          try:
              exif_command = 'exiftool -time:all -mimetype -j %s' % shlex.quote(self.file)
              if sys.platform == 'win32':
                  exif_command = exif_command.replace("\'", "\"")
              data = check_output(exif_command, shell=True).decode('UTF-8')
              exif = json.loads(data)[0]
          except (CalledProcessError, UnicodeDecodeError):
              return None
  
          return exif
  
subject: Fix for #70 1.5.8 not working in Windows (#72)