pithos: Cleanup 'pithos.api.util'

Use functools.partial to reduce code.