api/models: fix flake8 issue