For Loop Range Definition In Python