Fixes for api.apicrud module

Fixed some of the pylint warnings and left others to be handled in a next refactor
Again, `getattr()` is less obvious than `obj.attr`.