python3 TypeError: 'map' object is not subscriptable

NoSuchKey