"Refactor -> Move variable into structure (class or dict)" would be good — PyCharm feature request — Has it shipped?