Allow file objects in AttrDict.from_yaml()