Add lint_package function, redo lint flattening, add some curly linters