make some Ktlx functions work in Python 3, the main change is how _read_erd reads the mask and converts it to single bites
search for .eeg file
it also reads file_schema == 1