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