fixed bug in sendfile.py