Functions in scikit that detect outliers automatically?
The scikit-learn implementations of Isolation Forest and Local Outlier Factor should help you out here. Details on both at this link:

https://scikit-learn.org/stable/modules/outlier_detection.html