fix infinite recursion in File.__getattr__ reported in #264
Merge pull request #266 from ndawe/master

Fix #264