#To define a particular parameter, replace the 'parameterName' inside itsm.getParameter('parameterName') with that parameter's name
import subprocess as sp

obj=sp.Popen('uptime',stdin=sp.PIPE,stdout=sp.PIPE,shell=True)
print obj.communicate()[0]

