This wouldn't be necessary if you did:

   certs_path = os.path.asbpath(args.certs_path)