implemented Range __init__ crossplatform