def shell(args, input=''):
    """ uses subprocess pipes to call out to the shell.
    args:  args to the command
    input:  stdin
    returns stdout, stderr
    """
Wrapping an interactive command line application in a python script