How to pass julia flags while calling Julia from Python

I am trying to call julia from python code. Everything is working fine but know I need to pass julia arguments such as -O3 ,-compile=yes and–output-o flags. How can I pass these flags from python so that it works in julia.

Normally we would pass flags like

julia -O3 -compile=yes test.jl

but in python we call julia like


So how would we pass arguments in this case