logistic regression assumptions in python