Add line parameter to shell.py methods

Commander sends two arguments to each method, so they fail when they
only have one parameter.