On-fly dictionary generation for vector<myclass> and use as a branch

The python code was succeeding (partially) because it did not really detect that there was a mismatch between the interpreter view of the vector and the I/O internal representation (i.e. a bug :frowning: ).