Fix sync failure for old python versions