code: def classloader(self):
          
          return self.jvm.org.apache.spark.util.Utils.getContextOrSparkClassLoader()
docs: Returns the private class loader that spark uses.
  
          This is needed since jars added with --jars are not easily resolvable by py4j's classloader