Vscode Python Inheritance Syntax Python If Function