Different HID modes can be configured in Python. You can either use predefined mouse or keyboard, or write your own report descriptor.
The unused files are from the ST demos for different USB classes and are not needed for the stmhal port.