Use the /dev/null if you are using Unix. If you run any command in Shell and don't want to show its output on terminal.
For example :- ls > /dev/null will not produce any output on terminal.
So just use os,subprocess to execute some thing on shell and just put its o/p into /dev/null.