Added support for fopen and opening files.
Moved common stream functionality into the __builtins__.file module.
Moved common type checking functionality into the __builtins__.types module.
1fromsysimportstdin 2 3print"Reading 10 bytes..." 4s=stdin.read(10) 5prints 6 7print"Reading to end of file..." 8s=stdin.read() 9prints