Handle many pylint issues for records package

Also rebased from master.
Yeah, you just need to define something inside that scope