Check __init__ method in class definition