I'm not sure any committee could agree as to what defines a filelike object (does it implement seek?)
In addition you'd need an IRO (interface resolution order) if you truly intended to prove everything would work
To say nothing of accidentally implementing an interface and getting an error because if it
Doesn't sound like my kind of python...