Python Private Method Syntax Python If Function