Fix mutable default file arguments

sys.stdin/stdout can change after class definition. A user would expect
to see the change.