Add line parameter to shell.py methods

Commander sends two arguments to each method, so they fail when they
only have one parameter.
Merge pull request #140 from trygveaa/fix/shell-parameters

Add line parameter to shell.py methods