Python Float Object Is Not Subscriptable