Python Make Object Subscriptable In Python