fix buf not reach limit bug
add setup.py