add requirements.txt flask_views and flask_login create a has_permission and read_permission function