Update logistic.py