Fix Flake8 and add commants

- Update flake8 rules
- Add comments to assets plugin and devices model