python range tuple object is not callable