init check for python class tutorial.