code: def last_modified_date(filename):
      
      mtime = os.path.getmtime(filename)
      dt = datetime.datetime.utcfromtimestamp(mtime)
      return dt.replace(tzinfo=pytz.utc)
docs: Last modified timestamp as a UTC datetime