Python Function Object Is Not Subscriptable In Python