how to create certificates automatically with python (1)