fix file interface for Body
pep8 conform