ImSwitch: Generalizing microscope control in Python