Handle many pylint issues for records package

Also rebased from master.
`k` → `key`?