Yes we have other options in Pythonic way, that is input() or raw_input() statement will give you the input option to read
wls:/offline> x=raw_input('Enter a number:')
or ELSE
you can try with command line arguments with getopt
try:
opts, args = getopt.getopt( sys.argv[1:], "t:i", ["Timeout","Interval"] )
except getopt.GetoptError, err:
print str(err)
Confirm did this worked for you?