InventoryBrain: lookup nodes & resource unrestrictedly

Inventory API does not depend on security
Also fix some pylint complains