pylint fixes and documentation