factor mim.py into classes
factor out apdufw.py
remove test-usb.py