[python] Getting indices of True values in a boolean list