One approach just generates random integers up to the length of this list and then take the generated random integers as the index and form the token.
r = random.choices(["35" , "34" , "37" , "36" , "31" , "30" , "33" , "32" , "3d" , "3c"] ,k=4)
"".join(r)
OR
code = random.choices(["35" , "34" , "37" , "36" , "31" , "30" , "33" , "32" , "3d" , "3c"], k=4)
X ="".join(code)
return X
This might work