if os.path.exists(keyfile): print("Key file {} already exists. Skipping generation.".format(keyfile))