Python Use For Loop Range In Python Parameters In Functions