Implement __enter__ and __exit__ for "with" statement compatibility, add stubs for __iter__, next(), readline() and readlines()