Python Class Method Functional Safety