Fixes for Python 3

I made some minor changes for Nifti file loading to work with Python 3.

Versions 2.6, 3.2 and 3.3 have been tested.