Execute command using subprocess.Popen
        :param cmd:
        :return: (code, stdout, stderr)

def _exec(cmd):
        """Execute command using subprocess.Popen
        :param cmd:
        :return: (code, stdout, stderr)
        """
        process = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE)

        # pylint: disable=unexpected-keyword-arg
        (stdout, stderr) = process.communicate(timeout=defaults.DEFAULT_VCS_TIMEOUT)

        return process.returncode, stdout.decode(), stderr.decode()