complete python script to create 1MM keys