Fix pylint warnings, switch to doc strings