This method should be called before spark context is created as zeppelin interpreter will set some properties
related to classloader for repl which needs to be specified while creating sparkcontext in lead
Most of the contents of this class is borrowed from Spark Interpreter in zeppelin
https://github.com/apache/zeppelin/blob/master/spark/src/main/java/org/apache/zeppelin/spark/SparkInterpreter.java