Assorted code simplifications.
Assorted code simplifications.

Avoid single-use locals.
Use the fact that callables return None by default.
Reverse conditions when it reduce indentation and only costs a return
statement.
Use consistent style for pylint directives.

vpelletier/python-libusb1,vpelletier/python-libusb1