add time.sleep in parted process