write file using buffer

__init__.py to initialize package variables