Looks like a candidate for array comprehension.

    uidnumbers = [int(x[1]['uidNumber'][0]) for x in results]