Check if dev has "open" method.
Latest version of hidapi requires to call "open" function.
brew on MacOS still has old version so pyOCD fails.
This patch make it compatible with both versions.