Autofocusing a microscope (SEM) in PythonUsing Brent's method to autofocus an electron microscope online