logistic regression in python jupyter notebook