fiixed for old python