Add sample/CaptureView.py and modify recv_data to wait until all data recieved