python library wrapper to auto-choose pyusb or ctype style