def positions(keyword='', serps='', topkeyword=''):
  if topkeyword:
    keyword = topkeyword
  if not serps:
    def gserps(keyword):
      global serps
      return serps(keyword)
    serps = gserps(keyword)
  elif serps:
    serps = json.loads(serps)
    easydict = {}
    serpos = 1
    rd = serps[0]["responseData"]
    if rd == None:
      return "API quota likely exceeded"
    for serpage in serps:
      try:
        serpage = serpage["responseData"]["results"]
        for result in serpage:
          easydict[serpos] = result['url']
          serpos += 1
      except:
        pass
    return json.dumps(easydict)
  else:
    return "Error"
Return process parent pid.
dataset/ETHPy150Open miklevin/pipulate/common.py/positions--crossover with--dataset/ETHPy150Open packages/psutil/psutil/_psosx.py/Process.get_process_ppid