Define Range Function In Python