GetVar_least_spark.py and upgraded GetVar.py