list_ports: set default `name` attribute

See #262

Set the default `ListPortInfo.name` attribute from the full `device` name,
using `os.path.basename(device)`

This should be valid for all platforms, but can be easily overridden in
platform specific code that populates the `ListPortInfo` object.
2 files changed