Fixed a few Python 3 things. Much more to come.
Updated HDF5 saver/loader to use attributes.
Fixed plenty of xrange and print for Python 3.