little pep8
Try not to use reserved file keyword
added test for buffer that are bigger than max int. That causes waitress
function to throw exception when calling __len__ on them since 
python requires returing int from __len__ function of object