Ah good catch, that line is all kinds of wrong. It was supposed to convert your class labels into integers, but it looks like you already have them labelled as integers so it is redundant.
As for opening matlab v7.3 it looks like scipy will not work and you will have to use h5py instead.