Logistic Regression From Scratch in Python