Range Function Definition In Python