Python Typing Self Classification Definition