added buffer.py module