Minor code cleaning. (pythonic way)

This introduce a bug. If a user has more than one connected device than multiple user with the same name will be returned.