code: def _get_scripts_resource(pe):
      
      res = None
      for entry in pe.DIRECTORY_ENTRY_RESOURCE.entries:
          if entry.name and entry.name.string == b"PYTHONSCRIPT":
              res = entry.directory.entries[0].directory.entries[0]
              break
      return res
docs: Return the PYTHONSCRIPT resource entry.