Make nested enumerate() objects work