You can get user input using the input method in python 3 and raw_input in python 2 e.g.:
data = input("Enter your name") # for python 3
data = raw_input("Enter your name") # for python 2
For command line arguments you can use the sys.argv like this:
import sys
print(sys.argv)
Note that sys.argv is a list with the first element as the file name and rest of the elements are arguments passed by the user.