Imports and SparkContext changed to run in a PyCharm IDE