Function Object Is Not Subscriptable