fixing the namespace imports in Spark. Closes GH-755