Morningstar interview question

Constructor in python , why needed?