Given a raw dataset, write a Python script to clean the data, handle missing values, and prepare it for a logistic regression model.