pithos: Cleanup 'pithos.api.util'

Improve code's readability
pithos: PEP8 fixes