with Spark Submit
spark-submit ./WordCount.py # or on a cluster spark-submit ~/WordCount.py --master yarn --deploy-mode client