run setup progress_callback and diagnostic_output_callback when
set is called, not on import