passing self to parent class __init__