python getter fix