[python] fix extended progress bar double closure. fixes #14985