TypeError: 'function' object is not subscriptable

NoSuchKey