A simple fake file implementation for Python