Hello all, can anyone guide, how to run the script.py

How to run script.py file available in hdfs location, like in scala we can run the script as follows
vi script.scala
Save the file and then
run the file using command
scala src/main/script.scala
as script file present in src/main dir in hdfs