Handle many pylint issues for records package

Also rebased from master.