hello ! why keil can't execute python script on before build/rebuild user command , he can only execute batch file
Why do you say that?
No such restriction is mentioned here:
www.keil.com/.../uv4_ca_start_external_tools.htm