how to run the python script file which contains some arguments to pass? : I have a module which contains the python code and I execute using the following code:

    python script.py \
      --eps 12 \
      --minpts \
      --train \
      --predict \
      --lower_case \
      --input_file data.csv \
      --dev_file devdata.csv \
      --output_dir /output/

I use the parameters that are provided within the script and i don't have any methods or functions in it. But I wanted to take those parameters as input parameters to a function and the function has to execute the above python script with the given parameters. Is there any way of doing it??

Note: I know that I can write the entire code in script.py file into functions or classes but i just wanted to know if i can do it in this way just like an sql statement executed within the python code?