Make compatible with old python.