bindings: add docstrings and remove pylint warnings