Fix pithos client tests and pep8 errors