docs: def import_class(klass):
      """
      Imports a class from a fully qualified name string.
  
      :param klass: class string, e.g.
          "pyqode.core.backend.workers.CodeCompletionWorker"
      :return: The corresponding class
  
      """
      path = klass.rfind(".")
      class_name = klass[path + 1: len(klass)]
      try:
          module = __import__(klass[0:path], globals(), locals(), [class_name])
          klass = getattr(module, class_name)
      except ImportError as e:
          raise ImportError('%s: %s' % (klass, str(e)))
      except AttributeError:
          raise ImportError(klass)
      else:
          return klass