add support for spark 1.x
fix for python 2.6
Merge pull request #483 from RUNDSP/spark-1x-job-pr

add support for spark 1.x