def run_command(args, **kwargs): kwargs = merge_dicts({ 'stdout': subprocess.PIPE }, kwargs) command = Popen(args, **kwargs) return command