When would `fid` be an int? Is there any way to make it be a standard python file object, instead?