A better way to find and save mbed hid devices

Previously we remove non-mbed devices from result array while iterating it. The logic is correct, but the iteration and removal can't happen to an array simultaneously in Python. This new approach finds mbed devices and save them into a new array.

Please help to review and let me know anything that needs further changes. Thanks.