https://researchdatapod.com/how-to-solve-python-typeerror-filter-object-is-not-subscriptable/
How to Solve Python TypeError: 'filter' object is not subscriptable