Check that __init__ is a function