.getncattr shouldn't really be used here.  Just use getattr.
MFDataset sometimes will require a str input, not unicode