code: def dump_jwks(kbl, target, private=False):
      
  
      keys = []
      for kb in kbl:
          keys.extend([k.serialize(private) for k in kb.keys() if
                       k.kty != 'oct' and not k.inactive_since])
      res = {"keys": keys}
  
      try:
          f = open(target, 'w')
      except IOError:
          (head, tail) = os.path.split(target)
          os.makedirs(head)
          f = open(target, 'w')
  
      _txt = json.dumps(res)
      f.write(_txt)
      f.close()
docs: Write a JWK to a file. Will ignore symmetric keys !!
  
      :param kbl: List of KeyBundles
      :param target: Name of the file to which everything should be written
      :param private: Should also the private parts be exported