def execute(self, *, args: Union[list, tuple], options: dict) -> tuple:
        '''Execute command.'''
        cmd = self._build_cmd(args)
        process = subprocess.Popen(cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE,
                                   encoding='utf-8', shell=options.get('shell', False), env=options.get('env'))
        return process
def execute ( self , * , args : Union [ list , tuple ] , options : dict ) -> tuple : cmd = self . _build_cmd ( args ) process = subprocess . Popen ( cmd , stdout = PIPE , stderr = PIPE , stdin = PIPE , encoding = 'utf-8' , shell = options . get ( 'shell' , False ) , env = options . get ( 'env' ) ) return process
Execute command.