[python] Calling a class function inside of __init__