Prepare datasets by handling missing values, duplicates, outliers, and inconsistent data using Python.