docs: def load_session(fname=None):
      """Load current Scapy session from the file specified in the fname arg.
      This will erase any existing session.
  
      params:
       - fname: file to load the scapy session from"""
      if fname is None:
          fname = conf.session
      try:
          s = six.moves.cPickle.load(gzip.open(fname, "rb"))
      except IOError:
          try:
              s = six.moves.cPickle.load(open(fname, "rb"))
          except IOError:
              # Raise "No such file exception"
              raise
  
      scapy_session = six.moves.builtins.__dict__["scapy_session"]
      scapy_session.clear()
      scapy_session.update(s)
      update_ipython_session(scapy_session)
  
      log_loading.info("Loaded session [%s]" % fname)