org apache spark api python pythonexception