pyscan: fix autofocus and resume issues