where '%s' is replaced with token.contents. call the method re.split with 2 arguments: raw string ' *, *' and elements of bits from 1 index to in_index index,
loopvars = re . split ( r' *, *' , ' ' . join ( bits [ 1 : in_index ] ) )